* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  font-family: Helvetica Neue, Tahoma, Arial, PingFangSC-Regular, Hiragino Sans GB, Microsoft Yahei, sans-serif;
  background-color: #fff;
}
a {
  color: #333;
  text-decoration: none;
}
img {
  vertical-align: middle;
  width: 100%;
  height: 100%;
}
ul {
  list-style: none;
}
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
i,
em {
  font-style: normal;
}
.ellipsis-2 {
  /* 1.溢出隐藏 */
  overflow: hidden;
  /* 2.用省略号来代替超出文本 */
  text-overflow: ellipsis;
  /* 3.设置盒子属性为-webkit-box  必须的 */
  display: -webkit-box;
  /* 4.-webkit-line-clamp 设置为2，表示超出2行的部分显示省略号，如果设置为3，那么就是超出3行部分显示省略号 */
  -webkit-line-clamp: 2;
}
html {
  width: 100vw;
}
header {
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  height: 11.7333vw;
  background-color: red;
  color: white;
  text-align: center;
  line-height: 11.7333vw;
  font-size: 4.2667vw;
}
.main {
  background-color: #f1f1f2;
  margin-top: 11.7333vw;
}
.main .search {
  padding: 2.6667vw;
}
.main .search a {
  display: block;
  width: 94.6667vw;
  height: 8.2667vw;
  border-radius: 1.0667vw;
  background-color: #fff;
  text-align: center;
  line-height: 8.2667vw;
}
.main .announcement {
  display: flex;
  height: 7.4667vw;
  background-color: #f2dbdb;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}
.main .announcement .icon-laba {
  color: red;
  font-size: 4.5333vw;
}
.main .announcement p:nth-child(1) {
  width: 9.3333vw;
  height: 100%;
  padding: 0 2.1333vw;
  background-color: #f2dbdb;
  position: absolute;
  z-index: 10;
}
.main .announcement p:nth-child(2) {
  margin: 0 1.6vw;
  color: #ff1e02;
  font-size: 3.7333vw;
  animation: run 6s linear infinite;
}
@keyframes run {
  0% {
    transform: translateX(96vw);
  }
  100% {
    transform: translateX(-72vw);
  }
}
.main .classify {
  height: 45.3333vw;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.main .classify a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20%;
}
.main .classify a img {
  width: 11.7333vw;
  height: 11.7333vw;
}
.main .classify a p {
  font-size: 3.4667vw;
}
.main .goods-item {
  height: 100%;
}
.main .goods-item .item {
  height: 37.3333vw;
  background-color: #fff;
  margin-bottom: 1.6vw;
  display: flex;
  justify-content: space-around;
  padding: 2.6667vw;
}
.main .goods-item .item .left_photo img {
  width: 32vw;
  height: 32vw;
  margin-right: 5.3333vw;
}
.main .goods-item .item .right_txt {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.main .goods-item .item .right_txt h3 {
  font-size: 3.4667vw;
  color: #484848;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 设置行数 */
  -webkit-box-orient: vertical;
}
.main .goods-item .item .right_txt p:nth-child(2) {
  font-size: 3.2vw;
  color: #999;
}
.main .goods-item .item .right_txt p:nth-child(3) {
  font-size: 4vw;
  color: red;
}
.main .goods-item .item .right_txt p:nth-child(3) span {
  font-size: 3.2vw;
  color: #999;
  text-decoration: line-through;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  height: 13.3333vw;
  width: 100%;
  border-top: 0.2667vw solid rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  margin-top: 1.6vw;
}
footer a {
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
footer a .iconfont {
  font-size: 5.3333vw;
}
footer a p {
  font-size: 3.2vw;
}
footer .active {
  color: red;
}
